package cn.itsource.service.impl;

import cn.itsource.domain.Student;
import cn.itsource.service.IStudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
@Service
@Transactional(readOnly = true,propagation = Propagation.SUPPORTS)
public class StudentService implements IStudentService{
    @Autowired
    private cn.itsource.mapper.StudentMapper mapper;
    @Override
    public List<Student> loadAll() {
        return mapper.loadAll();
    }

    @Override
    public void save(Student student) {
        mapper.save(student);
    }
}
